﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    public interface IAdminPermissionsService
    {
        public Task<int> AddUsersAsync(int rolesid, int menuId);
        public Task<int> UpdateUsersAsync(int id, int rolesid, int menuId);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteUsersAsync(int id);
        public Task<List<AdminPermissionsDto>> GetAllUsersAsync(int deleteId = 1);
        public Task<AdminPermissionsDto> GetByIdAsync(int id);

        public Task<List<int>> GetSystemMenuIdByRolesId(int rolesId, int deleteId = 1);
        public Task<List<AdminPermissionsDto>> GetDateByRolesId(int rolesId,int deleteId = 1);
        public Task<AdminPermissionsDto> GetDataByMenuIdAndRolesIdAsync(int sysmenuId,int rolesId,int deleteId = 1);
    }
}
